﻿<phone:PhoneApplicationPage 
    xmlns:local="clr-namespace:RGBFinder"
    local:TiltEffect.IsTiltEnabled="True"
    x:Class="RGBFinder.NewGamePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:mmi="clr-namespace:mmiWP7SDK;assembly=WP7SDK"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True"
    Loaded="PhoneApplicationPage_Loaded"
    BackKeyPress="PhoneApplicationPage_BackKeyPress"
    xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI">

    <phone:PhoneApplicationPage.Resources>
		<ControlTemplate x:Key="PhoneSimpleRepeatButton" TargetType="RepeatButton">
    <Rectangle Fill="Transparent"/>
</ControlTemplate>
<ControlTemplate x:Key="ThumbControlTemplate1" TargetType="Thumb">
    <Rectangle Fill="{StaticResource PhoneForegroundBrush}"  Height="60" Width="50" />
</ControlTemplate>

<Style x:Key="SliderStyle1" TargetType="Slider">
    <Setter Property="BorderThickness" Value="0"/>
    <Setter Property="BorderBrush" Value="Transparent"/>
    <Setter Property="Maximum" Value="10"/>
    <Setter Property="Minimum" Value="0"/>
    <Setter Property="Value" Value="0"/>
    <Setter Property="Background" Value="{StaticResource PhoneContrastBackgroundBrush}"/>
    <Setter Property="Foreground" Value="{StaticResource PhoneAccentBrush}"/>
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="Slider">
                <Grid Background="Transparent">
                    <VisualStateManager.VisualStateGroups>
                      
                    </VisualStateManager.VisualStateGroups>
                    <Grid x:Name="HorizontalTemplate" Margin="{StaticResource PhoneHorizontalMargin}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="0"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Rectangle x:Name="HorizontalTrack" Grid.ColumnSpan="3" Fill="{TemplateBinding Background}" Height="12" IsHitTestVisible="False" Margin="0,22,0,50" Opacity="0.2"/>
                        <Rectangle x:Name="HorizontalFill" Grid.Column="0" Fill="{TemplateBinding Foreground}" Height="12" IsHitTestVisible="False" Margin="0,22,0,50"/>
                        <RepeatButton x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" Grid.Column="0" IsTabStop="False" Template="{StaticResource PhoneSimpleRepeatButton}"/>
                        <RepeatButton x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" Grid.Column="2" IsTabStop="False" Template="{StaticResource PhoneSimpleRepeatButton}"/>
                        <Thumb x:Name="HorizontalThumb" Grid.Column="1" Margin="-1,0,0,30" RenderTransformOrigin="0.5,0.5" Template="{StaticResource ThumbControlTemplate1}" Width="1">
                            <Thumb.RenderTransform>
                                <ScaleTransform ScaleY="1" ScaleX="32"/>
                            </Thumb.RenderTransform>
                        </Thumb>
                    </Grid>
                    <Grid x:Name="VerticalTemplate" Margin="{StaticResource PhoneVerticalMargin}">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="0"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Rectangle x:Name="VerticalTrack" Fill="{TemplateBinding Background}" IsHitTestVisible="False" Margin="12,0" Opacity="0.2" Grid.RowSpan="3" Width="12"/>
                        <Rectangle x:Name="VerticalFill" Fill="{TemplateBinding Foreground}" IsHitTestVisible="False" Margin="12,0" Grid.Row="2" Width="12"/>
                        <RepeatButton x:Name="VerticalTrackLargeChangeDecreaseRepeatButton" IsTabStop="False" Grid.Row="0" Template="{StaticResource PhoneSimpleRepeatButton}"/>
                        <RepeatButton x:Name="VerticalTrackLargeChangeIncreaseRepeatButton" IsTabStop="False" Grid.Row="2" Template="{StaticResource PhoneSimpleRepeatButton}"/>
                        <Thumb x:Name="VerticalThumb" Height="1" Margin="0,-1,0,0" Grid.Row="1" RenderTransformOrigin="0.5,0.5" Template="{StaticResource ThumbControlTemplate1}">
                            <Thumb.RenderTransform>
                                <ScaleTransform ScaleY="32" ScaleX="1"/>
                            </Thumb.RenderTransform>
                        </Thumb>
                    </Grid>
                </Grid>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

<!--<Slider Style="{StaticResource SliderStyle1}" />-->
	</phone:PhoneApplicationPage.Resources>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent" Height="766">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="480*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="120*"/>
            <RowDefinition Height="567"/>
            <RowDefinition Height="80" />

        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->


        <Grid x:Name="CellsGrid" Background="Transparent" Grid.Row="1" Margin="0,0,0,89">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80*" />
                <ColumnDefinition Width="80*" />
                <ColumnDefinition Width="80*" />
                <ColumnDefinition Width="80*" />
                <ColumnDefinition Width="80*" />
                <ColumnDefinition Width="80*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="0" />
                <RowDefinition Height="80" />
                <RowDefinition Height="80" />
                <RowDefinition Height="80" />
                <RowDefinition Height="80" />
                <RowDefinition Height="80" />
                <RowDefinition Height="80*" />
            </Grid.RowDefinitions>
            
        <Rectangle Name="rectangle1" Grid.Row="1" Margin="13" />
        <Rectangle Name="rectangle2" Grid.Row="1" Grid.Column="1" Margin="13" />
        <Rectangle Name="rectangle3" Grid.Row="1" Grid.Column="2" Margin="13" />
        <Rectangle Name="rectangle4" Grid.Row="1" Grid.Column="3" Margin="13" />
        <Rectangle Name="rectangle5" Grid.Row="1" Grid.Column="4" Margin="13" />
        <Rectangle Name="rectangle6" Grid.Row="1" Grid.Column="5" Margin="13" />
        <Rectangle Name="rectangle7" Grid.Row="2" Margin="13" />
        <Rectangle Name="rectangle8" Grid.Row="2" Grid.Column="1" Margin="13" />
        <Rectangle Name="rectangle9" Grid.Row="2" Grid.Column="2" Margin="13" />
        <Rectangle Name="rectangle10" Grid.Row="2" Grid.Column="3" Margin="13" />
        <Rectangle Name="rectangle11" Grid.Row="2" Grid.Column="4" Margin="13" />
        <Rectangle Name="rectangle12" Grid.Row="2" Grid.Column="5" Margin="13" />
        <Rectangle Name="rectangle13" Grid.Row="3" Margin="13" />
        <Rectangle Name="rectangle14" Grid.Row="3" Grid.Column="1" Margin="13" />
        <Rectangle Name="rectangle15" Grid.Row="3" Grid.Column="2" Margin="13" />
        <Rectangle Name="rectangle16" Grid.Row="3" Grid.Column="3" Margin="13" />
        <Rectangle Name="rectangle17" Grid.Row="3" Grid.Column="4" Margin="13" />
        <Rectangle Name="rectangle18" Grid.Row="3" Grid.Column="5" Margin="13" />
        <Rectangle Name="rectangle19" Grid.Row="4" Margin="13" />
        <Rectangle Name="rectangle20" Grid.Row="4" Grid.Column="1" Margin="13" />
        <Rectangle Name="rectangle21" Grid.Row="4" Grid.Column="2" Margin="13" />
        <Rectangle Name="rectangle22" Grid.Row="4" Grid.Column="3" Margin="13" />
        <Rectangle Name="rectangle23" Grid.Row="4" Grid.Column="4" Margin="13" />
        <Rectangle Name="rectangle24" Grid.Row="4" Grid.Column="5" Margin="13" />
        <Rectangle Name="rectangle25" Grid.Row="5" Margin="13" />
        <Rectangle Name="rectangle26" Grid.Row="5" Grid.Column="1" Margin="13" />
        <Rectangle Name="rectangle27" Grid.Row="5" Grid.Column="2" Margin="13" />
        <Rectangle Name="rectangle28" Grid.Row="5" Grid.Column="3" Margin="13" />
        <Rectangle Name="rectangle29" Grid.Row="5" Grid.Column="4" Margin="13" />
        <Rectangle Name="rectangle30" Grid.Row="5" Grid.Column="5" Margin="13" />
        <Rectangle Name="rectangle31" Grid.Row="6" Margin="13"  />
        <Rectangle Name="rectangle32" Grid.Row="6" Grid.Column="1" Margin="13"  />
        <Rectangle Name="rectangle33" Grid.Row="6" Grid.Column="2" Margin="13"  />
        <Rectangle Name="rectangle34" Grid.Row="6" Grid.Column="3" Margin="13"  />
        <Rectangle Name="rectangle35" Grid.Row="6" Grid.Column="4"  Margin="13" />
        <Rectangle Name="rectangle36" Grid.Row="6" Grid.Column="5" Margin="13"  />



        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button1" VerticalAlignment="Top" Width="80"  Grid.Row="1" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button2" VerticalAlignment="Top" Width="80"  Grid.Column="1" Grid.Row="1" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button3" VerticalAlignment="Top" Width="80"  Grid.Column="2" Grid.Row="1" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button4" VerticalAlignment="Top" Width="80"  Grid.Column="3" Grid.Row="1" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button5" VerticalAlignment="Top" Width="80"  Grid.Column="4" Grid.Row="1" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button6" VerticalAlignment="Top" Width="80"  Grid.Column="5" Grid.Row="1" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button7" VerticalAlignment="Top" Width="80"  Grid.Row="2" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button8" VerticalAlignment="Top" Width="80"  Grid.Column="1" Grid.Row="2" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button9" VerticalAlignment="Top" Width="80"  Grid.Column="2" Grid.Row="2" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button10" VerticalAlignment="Top" Width="80" Grid.Column="3" Grid.Row="2" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button11" VerticalAlignment="Top" Width="80" Grid.Column="4" Grid.Row="2" />
        <Button Content="" Height="79"  HorizontalAlignment="Left" Name="button12" VerticalAlignment="Top" Width="80" Grid.Column="5" Grid.Row="2" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button13" VerticalAlignment="Top" Width="80" Grid.Row="3" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button14" VerticalAlignment="Top" Width="80" Grid.Column="1" Grid.Row="3" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button15" VerticalAlignment="Top" Width="80" Grid.Column="2" Grid.Row="3" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button16" VerticalAlignment="Top" Width="80" Grid.Column="3" Grid.Row="3" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button17" VerticalAlignment="Top" Width="80" Grid.Column="4" Grid.Row="3" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button18" VerticalAlignment="Top" Width="80" Grid.Column="5" Grid.Row="3" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button19" VerticalAlignment="Top" Width="80" Grid.Row="4" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button20" VerticalAlignment="Top" Width="80" Grid.Column="1" Grid.Row="4" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button21" VerticalAlignment="Top" Width="80" Grid.Column="2" Grid.Row="4" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button22" VerticalAlignment="Top" Width="80" Grid.Column="3" Grid.Row="4" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button23" VerticalAlignment="Top" Width="80" Grid.Column="4" Grid.Row="4" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button24" VerticalAlignment="Top" Width="80" Grid.Column="5" Grid.Row="4" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button25" VerticalAlignment="Top" Width="80" Grid.Row="5" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button26" VerticalAlignment="Top" Width="80" Grid.Column="1" Grid.Row="5" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button27" VerticalAlignment="Top" Width="80" Grid.Column="2" Grid.Row="5" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button28" VerticalAlignment="Top" Width="80" Grid.Column="3" Grid.Row="5" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button29" VerticalAlignment="Top" Width="80" Grid.Column="4" Grid.Row="5" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button30" VerticalAlignment="Top" Width="80" Grid.Column="5" Grid.Row="5" />        
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button31" VerticalAlignment="Top" Width="80" Grid.Row="6" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button32" VerticalAlignment="Top" Width="80" Grid.Column="1" Grid.Row="6" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button33" VerticalAlignment="Top" Width="80" Grid.Column="2" Grid.Row="6" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button34" VerticalAlignment="Top" Width="80" Grid.Column="3" Grid.Row="6" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button35" VerticalAlignment="Top" Width="80" Grid.Column="4" Grid.Row="6" />
        <Button Content="" Height="79" HorizontalAlignment="Left" Name="button36" VerticalAlignment="Top" Width="80" Grid.Column="5" Grid.Row="6" />
        </Grid>
        
        
        <TextBlock Height="35" HorizontalAlignment="Left" Name="textBlock1" Text="" VerticalAlignment="Center" Width="197" Margin="283,54,0,30" FontSize="23" />

        <Button Content="{Binding Path=Strings.Start, Source={StaticResource LocalizedStrings }}" Grid.Row="1" Height="76" HorizontalAlignment="Left" Name="button37" VerticalAlignment="Top" Width="160" Click="button37_Click" Margin="320,484,0,0" />
        <TextBlock Height="40" Margin="283,84,0,0" Name="textBlock2" Text="" VerticalAlignment="Top" FontSize="26" Grid.RowSpan="2" />
        <TextBlock Height="35" HorizontalAlignment="Left" Margin="13,486,0,46" Name="textBlock3" Text="" VerticalAlignment="Center" Width="308" Grid.Row="1" FontSize="24" />
        <TextBlock Height="35" HorizontalAlignment="Left" Margin="13,520,0,11" Name="textBlock4" Text="" VerticalAlignment="Center" Width="308" Grid.Row="1" FontSize="24" />
        <TextBlock Margin="17,31,214,536" Name="PageTitle" Style="{StaticResource PhoneTextTitle1Style}" Text="{Binding Path=Strings.Start_, Source={StaticResource LocalizedStrings }}" Grid.RowSpan="2" />
        <TextBlock Margin="10,10,184,68" Name="textBlock5" Style="{StaticResource PhoneTextNormalStyle}" Text="{Binding Path=Strings.Title, Source={StaticResource LocalizedStrings }}" />
        <!--ContentPanel - place additional content here-->
        <Rectangle Name="rectangle_white" Width="480"  Height="80" Fill="White"  VerticalAlignment="Top"  HorizontalAlignment="Center" Margin="0"  Grid.Row="2"/>
        <mmi:MMAdView x:Name="mmAdView" Background="Transparent" Height="60" Width="480" VerticalAlignment="Bottom" Apid="43442" RefreshTimer="60" AdType="MMBannerAdBottom" Grid.Row="2" Margin="0,7,0,0" />
        <my:AdControl Height="80" Width="480" HorizontalAlignment="Center" Margin="0" Name="adControl1" VerticalAlignment="Top"  Grid.Row="2" ApplicationId="a8bcb4b7-95e4-47a7-8fc3-8514d98614c8" AdUnitId="56768" AdModel="Contextual" />
    </Grid>
    
    <!--Sample code showing usage of ApplicationBar-->
    <!--
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
    -->
</phone:PhoneApplicationPage>
